//
//  MWSearchHeaderView.m
//  XiRan-iOS
//
//  Created by liuyiming on 2019/11/24.
//  Copyright © 2019 Wood. All rights reserved.
//

#import "MWSearchHeaderView.h"

@interface MWSearchHeaderView ()

@property (nonatomic, strong) UILabel *titleLB;

@end

@implementation MWSearchHeaderView

- (id)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self setupPageSubviews];
    }
    return self;
}

- (void)setTitle:(NSString *)title {
    _titleLB.text = title;
}

- (void)setupPageSubviews {
    _titleLB = [[UILabel alloc] init];
    _titleLB.font = MWFont(16);
    _titleLB.textColor = MWHexColor(@"#000000");
    [self addSubview:_titleLB];
    
    [_titleLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self).insets(UIEdgeInsetsMake(0, 18, 0, 18));
    }];
}


@end
